package weather.classes;

import java.util.Scanner;

public class Cloudy extends Weather {

    String weatherName = "Пасмурно";
    int cloudCover = 0;

    public Cloudy() {
        setTemp(10);
    }

    public Cloudy(int temp) {
        setTemp(temp);
    }

    public void changeCloudCover() {
        System.out.print("Введите значение облачного покрова в %: ");
        Scanner scanner = new Scanner(System.in);
        cloudCover = scanner.nextInt();
    }

    public void displayInfo() {
        System.out.println("Погода: " + weatherName + "\n" + "Температура: " + getTemp());
        System.out.println("Облачный покров: " + cloudCover + "%");
    }

}